package com.lj.common.utils.qywx.builder;

import cn.hutool.core.util.StrUtil;
import com.lj.common.exception.CommonException;

/**
 * @author luojing
 * @date 2025/3/22
 */
public class FileVoiceBuilder extends AbstractMsgBuilder {


    private FileVoiceBuilder() {
    }

    /**
     * @param mediaId 文件id或者语音文件id 可以通过文件上传接口获取
     */
    public static FileVoiceBuilder builder(String mediaId) {
        if (StrUtil.isBlank(mediaId)) {
            throw new CommonException("文件id不可为空!");
        }
        FileVoiceBuilder fileVoiceBuilder = new FileVoiceBuilder();
        fileVoiceBuilder.builder.put("media_id", mediaId);
        return fileVoiceBuilder;
    }


}
